<script>

Father.prototype.name = 'gailun'
function Father(){
}

function Son(){
}

function inherit(Son,Father){
    function F(){}
    F.prototype = Father.prototype
    Son.prototype = new F()
    Son.prototype.constructor = Son
    Son.prototype.uber = Father.prototype //写入属性，记录继承自谁
}
inherit(Son,Father)
var son = new Son()

//Son的原型链 <==> Father的实例对象
</script>